HTML <meta> content Attribute Examples
Example: In this example, The content attribute in HTML is used for metadata like keywords in the meta tag to describe webpage content.
<!DOCTYPE html>
<html>
<head>
<title>content attribute in HTML</title>
<meta name="keywords" content="content attribute
in Meta Tag, Metadata" />
</head>
<body style="text-align: center">
<h1>w3wiki</h1>
<h2>
<meta> Content Attribute
</h2>
</body>
</html>
Output:
Supported Browsers:
The browser supported by HTML <meta> Content Attribute are listed below:
HTML content Attribute
HTML <meta> content Attribute provides the value associated with either the http-equiv or name attribute, offering metadata information such as character encoding, viewport settings, or other document-related data.
Syntax:
<meta content="text">
Attribute Values:
It contains single-value text which is used to specify the content of the meta information.